home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4065 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  830 b 

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What is wrong with this code? (BC45)
  5. Date: 27 Jan 1996 16:55:55 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4edler$3c6@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe11.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Jan 27, 1996 13:08:15 in article <What is wrong with this code? (BC45)>,
  15. 'vincer@iaccess.za (Vince Risi)' wrote: 
  16.  
  17.  
  18. >Why would I get an illegal initialization from this code? 
  19. >typedef char * pchar; 
  20. >pchar Fred = "This is a default value"; 
  21. >pchar Mark = Fred;    // <------ ???? 
  22. >Is this a BC45 bug? 
  23.  
  24. This compiles just fine with my BC4.++52. 
  25.  
  26. -- 
  27. Pete Grant 
  28. Kalevi, Inc. 
  29. Object Oriented Software Development
  30.